package com.aretias.jkholdings.model;

import org.springframework.web.multipart.MultipartFile;

public class Product {
	
	private int productId;
	private String productName; 
	private String productDesc; 
	private String productModelName;
	private String productPurposes; 
	private String productSize;
	private String productRegistrationDay;
	private String registrationDay;
	private MultipartFile productThumbnail;
	private MultipartFile productImage;
	private String productThumbnailName;
	private String productImageName;
	private int productCategoryId;
	
	public void setProductFileInit(){
		
		if(productImage != null) this.productImageName = this.productImage.getOriginalFilename();
		if(productThumbnail != null) this.productThumbnailName = this.productThumbnail.getOriginalFilename();
	}

	public int getProductId() {
		return productId;
	}
	public void setProductId(int productId) {
		this.productId = productId;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public String getProductDesc() {
		return productDesc;
	}
	public void setProductDesc(String productDesc) {
		this.productDesc = productDesc;
	}
	public String getProductPurposes() {
		return productPurposes;
	}
	public void setProductPurposes(String productPurposes) {
		this.productPurposes = productPurposes;
	}
	public String getProductSize() {
		return productSize;
	}
	public void setProductSize(String productSize) {
		this.productSize = productSize;
	}
	public String getProductRegistrationDay() {
		return productRegistrationDay;
	}
	public void setProductRegistrationDay(String productRegistrationDay) {
		this.productRegistrationDay = productRegistrationDay;
	}
	public String getRegistrationDay() {
		return registrationDay;
	}
	public void setRegistrationDay(String registrationDay) {
		this.registrationDay = registrationDay;
	}
	public int getProductCategoryId() {
		return productCategoryId;
	}
	public void setProductCategoryId(int productCategoryId) {
		this.productCategoryId = productCategoryId;
	}
	public String getProductModelName() {
		return productModelName;
	}
	public void setProductModelName(String productModelName) {
		this.productModelName = productModelName;
	}
	public MultipartFile getProductThumbnail() {
		return productThumbnail;
	}
	public void setProductThumbnail(MultipartFile productThumbnail) {
		this.productThumbnail = productThumbnail;
	}
	public MultipartFile getProductImage() {
		return productImage;
	}
	public void setProductImage(MultipartFile productImage) {
		this.productImage = productImage;
	}
	public String getProductThumbnailName() {
		return productThumbnailName;
	}
	public void setProductThumbnailName(String productThumbnailName) {
		this.productThumbnailName = productThumbnailName;
	}
	public String getProductImageName() {
		return productImageName;
	}
	public void setProductImageName(String productImageName) {
		this.productImageName = productImageName;
	}
}
